package com.chen.wxchat.entity;

public class Attendance {

    private String dateTime;
    private String teamType;
    private Integer overTime;
    private Integer lateTime;
    private Integer earlyGoTime;
    private Integer absTime;
    private Integer norTime;
    private Integer totalTime;

    public String getDateTime() {
        return dateTime;
    }

    public void setDateTime(String dateTime) {
        this.dateTime = dateTime;
    }

    public String getTeamType() {
        return teamType;
    }

    public void setTeamType(String teamType) {
        this.teamType = teamType;
    }

    public Integer getOverTime() {
        return overTime;
    }

    public void setOverTime(Integer overTime) {
        this.overTime = overTime;
    }

    public Integer getLateTime() {
        return lateTime;
    }

    public void setLateTime(Integer lateTime) {
        this.lateTime = lateTime;
    }

    public Integer getEarlyGoTime() {
        return earlyGoTime;
    }

    public void setEarlyGoTime(Integer earlyGoTime) {
        this.earlyGoTime = earlyGoTime;
    }

    public Integer getAbsTime() {
        return absTime;
    }

    public void setAbsTime(Integer absTime) {
        this.absTime = absTime;
    }

    public Integer getNorTime() {
        return norTime;
    }

    public void setNorTime(Integer norTime) {
        this.norTime = norTime;
    }

    public Integer getTotalTime() {
        return totalTime;
    }

    public void setTotalTime(Integer totalTime) {
        this.totalTime = totalTime;
    }

//    public Attendance(String dateTime, String teamType) {
//        this.dateTime = dateTime;
//        this.teamType = teamType;
//        this.overTime = 20;
//        this.absTime = 10;
//        this.earlyGoTime = 15;
//        this.norTime = 60;
//        this.lateTime = 10;
//        if (dateTime.equals("2018-07")){
//            this.norTime = 50;
//            this.absTime = 20;
//        }
//        if (teamType.equals("1") || teamType.equals("3")){
//
//            this.earlyGoTime = 20;
//            this.overTime = 5;
//        }
////        this.totalTime = (this.absTime + this.overTime + this.earlyGoTime +this.norTime+this.lateTime);
//        this.totalTime = 120;
//    }
}
